package com.yg.entity.readAndWriteTemplates;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 对应sheet04，此表是教师实践锻炼表
 * 注意！此表的id和教师表的id是一个id
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TeacherPractice对象", description = "对应sheet04，此表是教师实践锻炼表注意！此表的id和教师表的id是一个id")
public class TeacherPracticeRead implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @ExcelProperty("序号")
    private int num;

    @ApiModelProperty(value = "教师实践锻炼id，和教师id是一个")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ExcelProperty("教职工号")
    private String id;

    @ApiModelProperty(value = "实践单位")
    @ExcelProperty("实践单位")
    private String practiceUnit;

    @ApiModelProperty(value = "教师性别")
    @ExcelProperty("性别")
    private String sex;

    @ApiModelProperty(value = "实践形式和内容")
    @ExcelProperty("实践形式及内容")
    private String practiceFormContent;

    @ApiModelProperty(value = "开始时间")
    @ExcelProperty("开始时间")
    @DateTimeFormat("yyyy-mm-dd")
    private String start;

    @ApiModelProperty(value = "教师年龄")
    private Integer age;

    @ApiModelProperty(value = "教师姓名")
    @ExcelProperty("姓名")
    private String name;

    @ApiModelProperty(value = "教师生日")
    @ExcelProperty("出生日期")
    private String birthday;

    @ApiModelProperty(value = "教师职称，对应字典表")
    @ExcelProperty("职称")
    private String title;

    @ApiModelProperty(value = "最高学历，参考字典表")
    @ExcelProperty(value = "最高学历")
    private String education;

    @ApiModelProperty(value = "最高学位，参考字典表")
    @ExcelProperty(value = "最高学位")
    private String degree;

    @ApiModelProperty(value = "结束时间")
    @ExcelProperty("结束时间")
    private String end;

    @ApiModelProperty(value = "成效")
    @ExcelProperty("成效")
    private String results;

    @ApiModelProperty(value = "所在教研室")
    @ExcelProperty("所在教研室")
    private String staffRoom;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
